﻿@model Popw.LiveBlog.Models.ContentItem
@{
	ViewBag.Title = "Live Blog";
}
@section HeaderContent {
	<script type="text/javascript">
		$(function () {
			LiveBlog.listen();
		});
	</script>
}

<div id="Stream">

	<div class="item" data-contentitemid="@Model.ContentItemID">
		@Html.Raw(Model.Content)
		<div class="stat">@Model.Name - <span class="postTime" data-utc="@Model.Utc">@Model.FormattedTime</span></div>
		@if (User.Identity.IsAuthenticated)
		{
			using (Html.BeginForm("Delete", "Admin", new { id = Model.ContentItemID }, FormMethod.Post, null))
			{ <input type="submit" value="Delete" /> }
		}
	</div>
</div>

<div id="StreamBottom"> </div>
